package com.zhanggm.s3.starter.fileupload;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;

public class FileUploadAutoConfigure {

    @Bean
    @ConditionalOnProperty(prefix = "file",name = "enable",havingValue = "true")
    public FileService fileService() {
        return new FileService();
    }


}
